import request from '@/utils/request'



// 代付订单列表
export function list(query) {
  return request({
    url: '/admin/orderPay/list',
    method: 'get',
    params: query
  })
}


// 已转账
export function hasPaid(id) {
  return request({
    url: '/admin/orderPay/hasPaid?id=' + id,
    method: 'get'

  })
}


// 驳回
export function cancel(id) {
  return request({
    url: '/admin/orderPay/reject?id=' + id,
    method: 'get'

  })
}

// 通知
export function notice(id) {
  return request({
    url: '/admin/orderPay/notice?id=' + id,
    method: 'get'

  })
}


// 用户凭证上传
export function uploadAvatar(data) {
  return request({
      url: '/admin/orderPay/uploadPic',
    method: 'post',
    data: data
  })
}

// 新增订单
export function createOrder(data) {
  return request({
    url: '/agent/orderPay/createOrder',
    method: 'post',
    data: data
  })
}

